import { SpriteFrame } from "cc";

export enum GameType {
    room = "room",
    single = "single"
}
export enum GameCoinType {
    coin = "coin",
    game_coin = "game_coin"
}
export enum StartGameType {
    roomOwner = "roomOwner",
    count_down = "count_down",
    match_up = "match_up"
}

export default class MessageData {
    public static gameName = ""

    public static gameType = GameType.single;// single
    public static isRoomOwner = false;//false
    public static game_coinType = GameCoinType.game_coin;//coin/game_coin
    public static player_number = "4";//4
    public static startGameType = StartGameType.roomOwner;//count_down,match_up
    public static switch_room_id = ""; // switch_room中的room_id single模式为source_id
    public static bet_limit = 200;


    public static matchScenePlayersData: {
        userid: number,
        userName: string,
        userAvatar: string,
        userHeadImage: SpriteFrame,
        userFrame: string,
        userHeadFrameImage: SpriteFrame
    }[] = [];
    // public static matchScenePlayers: MatchPlayer[] = [];

    /**是否是房主 */
    public static isOwner = false;
    public static gameid = "";
    public static gameRoomId = "";
    public static gameSource = "";
    /**用户个人信息 */
    public static userInfo = null;
    public static userId: number = -1;
    public static shareUrl: string = "";

    /** 修改游戏模式是否显示金币图标 */
    public static showCoinIcon: boolean = true;

    /** 是否直接加入游戏大厅 */
    public static isDirectJoinLobby = false;


    public static isFirstSendJoinRoomGamePoint = true;
    public static isCanAutoJoinGame = true;
    public static isFirstShowChangeRoom = true;
    public static followedObj;

    public static gameSource_Id = "";
    public static isCanSendEmoji = false;
    public static extra;

    public static hasReceivedGroupInfo: boolean = false;
}